import 'package:appflutter/Pages/Main/initialization.dart';
import 'package:flutter/material.dart';

class main_page extends StatefulWidget {
  @override
  _main_pageState createState() => _main_pageState();
}

class _main_pageState extends State<main_page> {

  int _currentIndx = 0;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      bottomNavigationBar: BottomNavigationBar(
        currentIndex: _currentIndx,
        items:tabbar_items,
        type: BottomNavigationBarType.fixed,
        onTap: (index){
          setState(() {
            _currentIndx = index;
          });
        },
        selectedFontSize: 14,
        unselectedFontSize: 14,
      ),
      body: IndexedStack(
        children:pages,
        index: _currentIndx,
      ),
    );
  }
}

